package com.bosssoft.springboot.demo1.vo;


import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;


public class UserVO implements Serializable {
    @NotNull
    @Size(min=2,max = 10)
    private String name;

    @NotNull
    private String password;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "UserVO{" +
                "name='" + name + '\'' +
                ", password=" + password +
                '}';
    }
}
